package edu.fim.core.factory;

import edu.fim.presentation.model.bean.Consumer;

public class ConsumerFactory {

	private static final Double DEFAULT_CONSUMED_CALORIES = 0.0;
	private static final Double DEFAULT_CALORIES_THRESHOLD = 2000.0;
	
	public static Consumer createConsumer(
			Integer id,
			String name,
			Integer age,
			Double height,
			Double weight) {
		Consumer consumer = new Consumer(
				id,
				name,
				age,
				height,
				weight,
				DEFAULT_CONSUMED_CALORIES,
				DEFAULT_CALORIES_THRESHOLD);
		return consumer;
	}

	public static Consumer createConsumer(
			Integer id,
			String name,
			Integer age,
			Double height,
			Double weight,
			Double consumedCalories,
			Double caloriesThreshold) {
		Consumer consumer = new Consumer(
				id,
				name,
				age,
				height,
				weight,
				consumedCalories,
				caloriesThreshold);
		return consumer;
	}
}